find the missing frequency when median is given